﻿html {
    height: 100%;
    width: 100%;
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.wrapper-bg {
    background: url('../img/map_table.jpg') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.d-leaf {
    background: url('../img/d-leaf.png') no-repeat center center;
    background-size: cover;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wrapper {
    height: 80%;
    max-width: 1500px;
    margin-top: 10vh;
    position: relative;
    text-align: center;
}

    .wrapper * {
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-user-select: none;
        user-select: none;
    }

/*Map Start*/
.map-bg {
    max-width: 100%;
    max-height: 100%;
}

.map-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    border: none;
}

#map-countries {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    #map-countries > p {
        position: absolute;
        margin: 0;
    }

        #map-countries > p.active {
            cursor: pointer;
            z-index: 100;
            -moz-transform: translateY(-2px);
            -ms-transform: translateY(-2px);
            -o-transform: translateY(-2px);
            -webkit-transform: translateY(-2px);
            transform: translateY(-2px);
            -moz-transition: transform 1s linear;
            -o-transition: transform 1s linear;
            -webkit-transition: transform 1s linear;
            transition: transform 1s linear;
        }

            #map-countries > p.active .shadow {
                opacity: 0.6;
                -moz-transition: opacity 1s linear;
                -o-transition: opacity 1s linear;
                -webkit-transition: opacity 1s linear;
                transition: opacity 1s linear;
            }

            #map-countries > p.active .flag {
                opacity: 1;
                -moz-transition: opacity 1s linear;
                -o-transition: opacity 1s linear;
                -webkit-transition: opacity 1s linear;
                transition: opacity 1s linear;
            }

    #map-countries img {
        max-width: 100%;
        max-height: 100%;
    }

    #map-countries .flag {
        opacity: 0;
        width: 125px;
        position: absolute;
    }

    #map-countries .block {
        position: relative;
        z-index: 10;
    }

    #map-countries .shadow {
        opacity: 0;
        position: absolute;
        top: 5px;
        left: 3px;
        z-index: 8;
    }

    #map-countries .country-e {
        width: 32.9%;
        left: 39.8%;
        top: 24.5%;
        height: 34.9%;
    }

    #map-countries .country-s {
        width: 18.2%;
        left: 44.8%;
        top: 53.3%;
        height: 33.3%;
    }

    #map-countries .country-w {
        width: 29.6%;
        left: 17.5%;
        top: 16.4%;
        height: 43%;
    }

    #map-countries .country-n {
        width: 45.1%;
        left: 29%;
        top: 2.5%;
        height: 38.3%;
    }

    #map-countries .country-e .shadow, #map-countries .country-s .shadow {
        top: 4px;
    }

    #map-countries .country-e .flag {
        width: 25.1%;
        height: 57%;
        left: 95%;
        top: 59%;
    }

    #map-countries .country-s .flag {
        width: 44.8%;
        height: 60.7%;
        left: 105%;
        top: 43%;
    }

    #map-countries .country-w .flag {
        width: 32%;
        height: 45.5%;
        left: -30%;
        top: 52%;
    }

    #map-countries .country-n .flag {
        width: 16.3%;
        height: 46%;
        left: -31%;
        top: 35%;
    }
/*Map End*/



/*Menu Start*/
.menu {
    position: absolute;
    left: -10%;
    /*top: 40vh;*/
    bottom: -7.5vh;
    z-index: 980;
    width: 15vh;
    /*height: 15vh;
    max-height: 200px;
    max-width: 200px;*/
    margin: 0;
    padding: 0;
}

    .menu.sp {
        position: fixed;
        left: 2%;
        bottom: 3vh;
    }

    .menu li {
        cursor: pointer;
        list-style: none;
        padding: 0;
        width: 100%;
        margin-bottom: 2vh;
    }

        .menu li a {
            display: block;
            width: 100%;
            height: 100%;
            background: url('../img/menu_bg.png') no-repeat left top;
            background-size: 100% auto;
            opacity: 0.7;
        }

            .menu li a:hover {
                opacity: 0.9;
            }

            .menu li a.btn-character {
                background-position: left 57%;
            }

                .menu li a.btn-character:hover {
                    background-position: left 71.4%;
                }

            .menu li a.btn-story {
                background-position: left 28%;
            }

                .menu li a.btn-story:hover {
                    background-position: left 42.7%;
                }

            .menu li a.btn-about {
                background-position: left top;
            }

                .menu li a.btn-about:hover {
                    background-position: left 13.6%;
                }

            .menu li a.btn-trailer {
                background-position: left 85.6%;
                margin-bottom: -1vh;
            }

                .menu li a.btn-trailer:hover {
                    background-position: left 100.1%;
                }

            .menu li a.btn-timeline {
                background: url('../img/menu_timeline.png') no-repeat left top;
                background-size: 100% auto;
            }

                .menu li a.btn-timeline:hover {
                    background-position: left 101.9%;
                }

            .menu li a.btn-fiction {
                background: url('../img/menu_fiction.png') no-repeat left top;
                background-size:90% auto;
                opacity:1;
            }

                .menu li a.btn-fiction:hover {
                    background-position: left 108%;
                }

/*Menu End*/


.popup-layout img {
    max-height: 85vh;
    max-width: 96%;
    margin-left: 12%;
}

.popup-wrapper .popup-bg {
    background-color: rgba(0,0,0,0.57);
}


/*Story & About start*/
.story .popup-layout, .about .popup-layout {
    font: 14px/1.8 'Microsoft YaHei';
    text-align: left;
    height: 100%;
}

.story article p {
    margin: 0 auto;
    width: 94%;
    max-width: 680px;
}

.about article p, .about article h2 {
    margin: 0 auto;
    width: 94%;
    max-width: 500px;
}

.popup-layout article {
    opacity: 0.9;
    padding-top: 30px;
}

    .popup-layout article h2 {
        margin-bottom: 30px;
    }

    .popup-layout article p {
        margin-bottom: 50px;
    }

    .popup-layout article br {
        line-height: 1em;
    }
/*Story & About End*/



/*Timeline Start*/
.popup-wrapper.timeline .popup-layout {
    max-height: 100vh;
}

.popup-wrapper.timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    /*margin-bottom: 30px;
    margin-top: 30px;*/
    margin-top: 7vh;
}

.popup-wrapper.timeline li {
    margin-top: 4vh;
}

    .popup-wrapper.timeline li:first-child {
        margin-top: 0;
    }

    .popup-wrapper.timeline li:last-child {
        margin-bottom: 4vh;
    }

.popup-wrapper.timeline img {
    height: 100%;
    margin: 0;
    max-width: 100%;
}

.popup-wrapper.timeline a {
    opacity: 0;
    display: inline-block;
    height: 10vh;
}

.popup-wrapper.timeline li.south a {
    height: 11vh;
}

.popup-wrapper.timeline li.west a {
    height: 12vh;
}

.popup-wrapper.timeline a.ltr {
    margin-right: 10vh;
}

.popup-wrapper.timeline a.rtl {
    margin-left: 10vh;
}

.popup-wrapper.timeline a.active.ltr {
    -moz-animation: flyin-ltr 1s ease-in forwards;
    -o-animation: flyin-ltr 1s ease-in forwards;
    -webkit-animation: flyin-ltr 1s ease-in forwards;
    animation: flyin-ltr 1s ease-in forwards;
}

.popup-wrapper.timeline a.active.rtl {
    -moz-animation: flyin-rtl 1s ease-in forwards;
    -o-animation: flyin-rtl 1s ease-in forwards;
    -webkit-animation: flyin-rtl 1s ease-in forwards;
    animation: flyin-rtl 1s ease-in forwards;
}

/*Timeline End*/

/*Animation*/
@keyframes flyin-ltr {
    from {
        opacity: 0;
        -ms-transform: translateX(-6vh);
        -o-transform: translateX(-6vh);
        transform: translateX(-6vh);
    }

    to {
        opacity: 1;
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

@-moz-keyframes flyin-ltr {
    from {
        opacity: 0;
        -moz-transform: translateX(-6vh);
    }

    to {
        opacity: 1;
        -moz-transform: translateX(0);
    }
}

@-webkit-keyframes flyin-ltr {
    from {
        opacity: 0;
        -webkit-transform: translateX(-6vh);
    }

    to {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes flyin-rtl {
    from {
        opacity: 0;
        -ms-transform: translateX(6vh);
        -o-transform: translateX(6vh);
        transform: translateX(6vh);
    }

    to {
        opacity: 1;
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

@-moz-keyframes flyin-rtl {
    from {
        opacity: 0;
        -moz-transform: translateX(6vh);
    }

    to {
        opacity: 1;
        -moz-transform: translateX(0);
    }
}

@-webkit-keyframes flyin-rtl {
    from {
        opacity: 0;
        -webkit-transform: translateX(6vh);
    }

    to {
        opacity: 1;
        -webkit-transform: translateX(0);
    }
}

@keyframes breath {
    0%,100% {
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }

    25% {
        -ms-transform: scale(0.9);
        -o-transform: scale(0.9);
        transform: scale(0.9);
    }

    75% {
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
        transform: scale(1.1);
    }
}

@-moz-keyframes breath {
    0%,100% {
        -moz-transform: scale(1);
    }

    25% {
        -moz-transform: scale(0.9);
    }

    75% {
        -moz-transform: scale(1.1);
    }
}

@-webkit-keyframes breath {
    0%,100% {
        -webkit-transform: scale(1);
    }

    25% {
        -webkit-transform: scale(0.9);
    }

    75% {
        -webkit-transform: scale(1.1);
    }
}
